/*
 * DeliveryContract.java
 * business
 *
 * Created by SunDing on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.agents.delivery;

import com.yidiandao.business.base.BasePresenter;
import com.yidiandao.business.base.BaseView;
import com.yidiandao.business.interfaces.LoadMoreListener;
import com.yidiandao.business.interfaces.RefreshLayoutStateListener;
import com.yidiandao.business.interfaces.RefreshListener;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;

import java.util.List;

/** 我是代理商. 配送订单 契约类 */
public class DeliveryContract {

    interface Presenter extends BasePresenter {

        void getNetData(boolean isRefresh);

        void handleEvent(int type, String orderId);
    }

    interface View
            extends BaseView<Presenter>,
            RefreshLayoutStateListener,
            RefreshListener,
            LoadMoreListener {

        void setDisplayListItems(List<DisplayListItem> displayListItems);

        void showDialog();

        void dismissDialog();
    }
}
